<div class="levels index">
	<h2><?php echo __('Niveles '); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('Nombre'); ?></th>
			<th><?php echo $this->Paginator->sort('descrición'); ?></th>
			<th><?php echo $this->Paginator->sort('Módulo'); ?></th>
			<th class="actions"><?php echo __(''); ?></th>
	</tr>
	<?php foreach ($levels as $level): ?>
	<tr>
		<td>
			<?php echo $this->Html->link($level['Level']['title'], array('controller' => 'levels', 'action' => 'view', $level['Level']['id'])); ?>
		</td>
		<td><?php echo h($level['Level']['description']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($level['Module']['title'], array('controller' => 'modules', 'action' => 'view', $level['Module']['id'])); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $level['Level']['id'])); ?>
			<?php echo $this->Form->postLink(__('Eliminar'), array('action' => 'delete', $level['Level']['id']), null, __('¿Está seguro que desea eliminar el nivel %s?', $level['Level']['title'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('{:page} / {:pages}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>

<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Nuevo Nivel'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Listar Módulos'), array('controller' => 'modules', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Módulo'), array('controller' => 'modules', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Tópicos'), array('controller' => 'topics', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Tópico'), array('controller' => 'topics', 'action' => 'add')); ?> </li>
	</ul>
</div>
